package st.business.tepth.business.visitor.visitorwork.work.detail;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.business.tepth.business.visitor.visitorwork.entity.WorkDetailBean;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;

/**
 * Author: shadow
 * Email:  1025431817@qq.com
 * Time:   2019-06-05 17:33
 */

public interface DetailContract {
    interface View extends BaseView {
        void showWorkDetail(WorkDetailBean workDetailBean);
    }

    interface Model extends BaseModel {
        Disposable getWorkDetail(String token, int repairTaskId,
                                 OnDataConvertListener<WorkDetailBean> listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void getWorkDetail(String token, int repairTaskId);
    }
}
